﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Zatify.WebUI.Models
{
    public class BusinessProfileAddressViewModel
    {
        //[Required(ErrorMessage = "User ID required")]
        //[Remote("BusinessUserIDUnique", "Registration", ErrorMessage = "User ID must be unique.")]
        public string UserID { get; set; }

        [Required(ErrorMessage = "Password required")]
        [RegularExpression("^[a-zA-Z0-9]{6,10}$", ErrorMessage = "Password must be 6-10 characters long")]
        public string Password { get; set; }

        [Required(ErrorMessage = "Confirm Password required")]
        [Compare("Password", ErrorMessage = "The password and confirmation password do not match.")]
        public string ConfirmPassword { get; set; }

        [Required(ErrorMessage = "Email required")]
        [RegularExpression(@"^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$", ErrorMessage = "Please enter a valid e-mail adress")]
        public string Email { get; set; }

        [Required(ErrorMessage = "Business Name required")]
        public string BusinessName { get; set; }

        public string Web { get; set; }

        [Required(ErrorMessage = "Bussines Phone required")]
        public string BusinessPhone { get; set; }

        public string CellPhone { get; set; }

        public string TollFreePhone { get; set; }

        public string Fax { get; set; }

        [Required(ErrorMessage = "Street Address required")]
        public string StreetAddress1 { get; set; }

        public string StreetAddress2 { get; set; }

        [Required(ErrorMessage = "City required")]
        public string City { get; set; }

        public string StateCode { get; set; }

        [Required(ErrorMessage = "Zip Code required")]
        [RegularExpression(@"^\d{5}(-\d{4})?$", ErrorMessage = " Zip Code must be 5 characters length")]
        public string ZipCode { get; set; }
    }
}